package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.vo.AttrGroupVo;
import com.atguigu.gulimall.product.vo.AttrGroupWithAttrs;
import com.atguigu.gulimall.product.vo.webvo.SkuItemVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.AttrGroupEntity;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author HX
 * @email 1624242879@qq.com
 * @date 2021-01-17 20:55:42
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params, long catelogId);

    //删除 分组--属性  关联关系
    void removeAttrGroupRelation(AttrGroupVo[] attrGroupVos);

    // 获取属性分组没有关联的其他属性
    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId);

    //添加属性与分组关联关系
    void addAttr_GroupRelation(List<AttrGroupVo> attrGroupVo);

    //获取分类下所有分组&关联属性
    List<AttrGroupWithAttrs> getAttrGroupWithAttrs(Long catelogId);
    //spu规格包装pms_product_attr_value
    List<SkuItemVo.SpuItemAttrGroupVo> selectattrGroupVos(Long spuId, Long catalogId);
}

